<?php include('./templete/public/header.php'); ?>
<title><?php echo $web['site_config']['site_title'].'_'; ?>公司详情</title>
<body>
	<header class="clearfix">
		<a class="fl header_return"><i class="iconzuojiantou1 iconfont">&#xe616;</i>返回</a>
		<a class="header_new">个人中心</a>
		<a class="fr header_more"><i class="iconmore iconfont">&#xe637;</i></a>
	</header>
	<div class="recruit_container">
		<div class="recruit_header">
			<span class="recruit_pic pr" ><img class="center"  width="100%" height="100%" src="<?php echo $co_data['img_url']; ?>"/></span>
			<span class="recruit_name" ><?php echo $co_data['name']; ?></span>
		</div>
		<div class="recruit_main">
			<span class="recruit_main_top">公司介绍</span>
			<div class="test-container">
				<p style="line-height: 30px;color: #666;">
					<?php echo $co_data['content']; ?>
				</p>
			</div>
		</div>
		
	</div>
	<div class="recruit_footer">
		<a class="recruit_footer_see" href="/index/zhiwei/lists">
			<i class="iconfont icon_see">&#xe893;</i>
			<p>查看职位</p>
		</a>
		<a class="recruit_footer_follow" href="javascript:;" onclick="gz(<?php echo $co_data['id'];?>)">
			<?php if (!$zw_gz): ?>
				关注企业
			<?php else: ?>
				已关注
			<?php endif ?>    
		</a>
	</div>
	<?php include('./templete/public/footer.php'); ?>
	<script>
		function gz(id) {
		$.ajax({
			type:"post",
			url:"/index/company/gs_gz",
			data:'id='+id,
			success:function(res){
				alert(res.msg);
				if (res.code==2) {
					$(".recruit_footer_follow").html("已关注");
				}else{
					$(".recruit_footer_follow").html("关注企业");
				}
				
			}
		})
	}
	</script>
</body>

</html>

